package com.cqch.controller;

import com.cqch.pojo.repVo.BaseResp;
import com.cqch.service.IPassengerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author CQCH
 * @Description
 * @Date 2022/3/30
 */
@RestController
@RequestMapping("/tguser")
public class PassengerController {

    @Autowired
    IPassengerService passengerService;

    @RequestMapping("/findAll")
    public BaseResp findAll(Integer uid){
        System.out.println(uid);

        BaseResp all = passengerService.findAll(uid);
        System.out.println(all);
        return all;
    }
}
